﻿using System.ComponentModel.DataAnnotations;

namespace OurWedding1.Models
{
    [MetadataType(typeof(ExpenseCategoryBuddy))]
    public partial class ExpenseCategory
    {

    }

    public class ExpenseCategoryBuddy
    {
        [Required(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "ExpenseCategory_Name_Required")]
        [Display(ResourceType = typeof (Resources), Name = "ExpenseCategory_Name")]
        public string Name { get; set; }
    }
}